import request from '@/utils/request'

// 查询表具维修列表
export function listRepairInfo(query) {
  return request({
    url: '/installation/repairInfo/list',
    method: 'get',
    params: query
  })
}

// 查询表具维修详细
export function getRepairInfo(id) {
  return request({
    url: '/installation/repairInfo/' + id,
    method: 'get'
  })
}

// 新增表具维修
export function addRepairInfo(data) {
  return request({
    url: '/installation/repairInfo',
    method: 'post',
    data: data
  })
}

// 修改表具维修
export function updateRepairInfo(data) {
  return request({
    url: '/installation/repairInfo',
    method: 'put',
    data: data
  })
}

// 删除表具维修
export function delRepairInfo(id) {
  return request({
    url: '/installation/repairInfo/' + id,
    method: 'delete'
  })
}
